package com.soulmate.img.controller;

import common.vo.PicUploadResult;
import com.soulmate.img.service.ImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class ImgController {
    @Autowired
    private ImgService imgService=null;
    @RequestMapping("/pic/uploadImg")
    public PicUploadResult uploadImg(MultipartFile pic){
        PicUploadResult result=imgService.uploadImg(pic);
        return result;
    }

}
